<!-- eslint-disable InnerIPLeak -->
<template>
  <div class="footer">
    <div
      class="copyright"
      :class="colorSty"
    >
      <a-icon type="copyright" />2018-2023
      <span>{{ $t('desayCopright') }} {{ $t('allRightsReserved') }} V0.9.5</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'GlobalFooter',
  props: {
    colorSty: {
      type: String,
      default: ''
    }
  },
  data () {
    return {
      year: '2018-2022'
    }
  },
  mounted () {
    const date = new Date()
    this.year = date.getFullYear()
  }
}
</script>

<style lang="less" scoped>
.footer {
  padding: 15px 0;
  text-align: center;
  border-top: 1px solid  @borderColor;
  flex:none;
  .copyright {
    color: #cdcdcd;
    font-size: 1.2rem;
    &.userlayoutCopyright {
      color: #fff;
    }
  }
}
</style>
